package com.example.myapplication.bean;

public class AudioBean {
    private String id;
    private String title;
    private String time;
    private String duration;
    private String path;
    private long durationLong;//文件的毫秒数
    private long lastModified;//文件修改时间
    private String fileSuffix;//文件后缀名
    private long fileLength;//文件的字节数
    private boolean isPlaying;//determining if it is currently playing.
    private int progress;//当前播放的进度。

    private boolean isPaused;//是否暂停





    public AudioBean() {
    }

    public AudioBean(String id, String title, String time, String duration, String path,
                     long durationLong, long lastModified, String fileSuffix, long fileLength) {
        this.id = id;
        this.title = title;
        this.time = time;
        this.duration = duration;
        this.path = path;
        this.durationLong = durationLong;
        this.lastModified = lastModified;
        this.fileSuffix = fileSuffix;
        this.fileLength = fileLength;
//        isPaused = false;
    }


    public void setPaused(boolean paused) {
        isPaused = paused;
    }

    public boolean isPaused() {
        return isPaused;
    }


    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public void setPlaying(boolean playing) {
        isPlaying = playing;
    }

    public boolean isPlaying() {
        return isPlaying;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getDurationLong() {
        return durationLong;
    }

    public void setDurationLong(long durationLong) {
        this.durationLong = durationLong;
    }

    public long getLastModified() {
        return lastModified;
    }

    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public long getFileLength() {
        return fileLength;
    }

    public void setFileLength(long fileLength) {
        this.fileLength = fileLength;
    }

    @Override
    public String toString() {
        return "AudioBean{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", time='" + time + '\'' +
                ", duration='" + duration + '\'' +
                ", path='" + path + '\'' +
                ", durationLong=" + durationLong +
                ", lastModified=" + lastModified +
                ", fileSuffix='" + fileSuffix + '\'' +
                ", fileLength=" + fileLength +
                ", isPlaying=" + isPlaying +
                ", progress=" + progress +
                '}';
    }
}
